<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script type="text/javascript">
     const arr = [1, 2, 3, 4, 5, 6]
    // 1.将数组 map，filter，reduce，every改写成箭头函数形式
    const arr1 = arr.map(
        (element) => element + 1
        
    )
    console.log(arr1);
    // 2.
    const new_arr = arr.filter(
        (e) => e % 2 == 0  
        
    )
    // 3.
    var sum = arr.reduceRight(
        (v1, v2) => v1 * v2
        
    )
    //4.
    var isMatch = arr.every(
        (e) => e > 1
        
    )

    </script>
</body>
</html>